import PropTypes from "prop-types";
import { Mask } from "antd-mobile";
import styles from "./CommonMask.module.less";

const CommonMask = (props) => {
  return (
    <Mask visible={props.showMask}>
      <div className={styles.overlayContent}>{props.txt}</div>
    </Mask>
  );
};

CommonMask.propTypes = {
  showMask: PropTypes.bool,
  txt: PropTypes.string
};

export default CommonMask;
